package com.pengtu.entity.contract;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.pengtu.entity.IdEntity;

/**
 * 建设工程检测协议书检测依据
 * @author Administrator
 *
 */
@Entity
@Table(name="T_C_CONTRACT_ACCORDING")
public class According extends IdEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer index; //序号
	private String name; //依据名称
	private String remark; //备注
	private Document document; // 建设工程检测协议书
	
	@ManyToOne(cascade=CascadeType.REFRESH,fetch=FetchType.LAZY)
	@JoinColumn(name="CID")
	public Document getDocument() {
		return document;
	}
	public void setDocument(Document document) {
		this.document = document;
	}
	@Column(name="INDEX_1")
	public Integer getIndex() {
		return index;
	}
	public void setIndex(Integer index) {
		this.index = index;
	}
	@Column(name="NAME")
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Column(name="REMARK")
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}
